$(document).ready(function(){
	//判断是否登录
	var adminName=sessionStorage.adminName; 
	var adminAuthority=sessionStorage.adminAuthority; //登录管理员的权限
	console.log(adminName);
	console.log(adminAuthority);
   	if (adminName == undefined) //如果没登录，返回登录页面
   	{ 
    	 window.location.href="/webapp/ProjectCMS2/onload.html"; 
	} 
	else
	{
		if(adminAuthority==0)
		{
			$("#admin").css("display","none");
		}
		$("#loadText").text(adminName+",欢迎登录本系统！")
	}
});